package com.juhuixing.common.utils.encryption;

import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.security.crypto.password.PasswordEncoder;

/**
 *@ClassName BCryptPasswordUtil
 *@Description TODO
 *@Author 刘猛
 *@Date 2019/3/19 9:56
 **/
public class BCryptPasswordUtil {
    public final static PasswordEncoder encoder = new BCryptPasswordEncoder();
    public static String getDefaultPwd(String plaintextPwd){
       return encoder.encode(plaintextPwd);
    }
}
